﻿using System.Web;
using System.Web.Mvc;
using Sharp.Portal.Mvc;
using Sharp.Portal.Mvc.Filter;
using Sharp.WebBooter.Areas.Platform;

namespace Sharp.WebBooter
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //filters.Add(new ErrorExceptionFilter());
            //filters.Add(new AuthorizeFilter());
            filters.Add(new ViewEnginesResultFilter());
            //filters.Add(new CompressActionFilter());
            filters.Add(new NoCacheAttribute());
            filters.Add(new CustomHandleErrorAttribute());
             
            filters.Add(new ViewModelFilter());
        }
    }
}
